<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<c:if test="${!empty subscribes}">
	<h1>Subscribes</h1>
	<table class="table table-hover">
		<tr>
			<th>Name</th>
			<th>Description</th>
			<th>Action</th>
		</tr>
		<c:forEach items="${subscribes}" var="subscribe">
			<tr>
				<td>${subscribe.service.nameService}</td>
				<td>${subscribe.service.description}</td>

				<td><a class="btn btn-danger"
					href='<c:url value="/subscribes/delete/${subscribe.id}"></c:url>'>
						Unsubcribe</a></td>
			</tr>
		</c:forEach>
	</table>
</c:if>
<c:if test="${empty subscribes}">
	<h3>No subscribes</h3>
</c:if>
<br />

